﻿using System;
using System.Collections.Generic;
using System.Linq;
using ExpenseSystem.Common;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Lor;

namespace ExpenseSystem.Fether
{
    public class InformationFetcher:SystemFetcher<InformationModel>
    {
        public InformationModel GetDefault(out string message)
        {
            int rows;
            IList<InformationModel> information = List( OrderBy.GetDefault(), Limit.GetDefault(), out message,out rows);
            if (information.Count > 0)
                return information.First();
            else
                return null;
        }
    }
}
